package cn.xunjie.ymcc.feign;


import cn.xunjie.ymcc.domain.MediaFile;
import cn.xunjie.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course", fallbackFactory = CourseSearchFeignClientFallBackFactory.class)
public interface CourseSearchFeignClient {
    @RequestMapping(value = "/courseUserLearn/byIds",method = RequestMethod.POST)
    JSONResult byIds(@RequestBody MediaFile mediaFile);

    @RequestMapping(value="/course/info/{courseIds}",method= RequestMethod.GET)
    JSONResult courseOrderInfo(@PathVariable("courseIds") String courseIds);
}
